<template>
  <div>
    <div class="rowData">
      <div class="col1">网站状态</div>
      <div class="col2">
        <el-switch
          class="tablescope"
          v-model="switchValue"
          :active-color="$color - primary1"
          inactive-color=""
          active-text="启用"
          inactive-text="禁用"
        >
        </el-switch>
      </div>
      <div class="col3">
        站点关闭后将不能访问，后台可正常登录
        <div>调用方式<span>config('base.site_status')</span></div>
      </div>
    </div>
    <div class="rowData">
      <div class="col1">网站域名</div>
      <div class="col2">
        <el-input v-model="yuming" placeholder="请填写网站域名"></el-input>
      </div>
      <div class="col3">调用方式<span>config('base.site_domain')</span></div>
    </div>
    <div class="rowData">
      <div class="col1">网站名称</div>
      <div class="col2">
        <el-input v-model="yuming" placeholder="请填写网站名称"></el-input>
      </div>
      <div class="col3">
        将显示在浏览器窗口标题等位置
        <div>调用方式<span>config('base.site_name')</span></div>
      </div>
    </div>
    <!-- <div class="rowData">
              <div class="col1">网站LOGO</div>
              <div class="col2">
                <el-upload
                  class="avatar-uploader"
                  action=""
                  :show-file-list="false"
                  :on-success="handleAvatarSuccess"
                  :before-upload="beforeAvatarUpload"
                >
                  <img v-if="imageUrl" :src="imageUrl" class="avatar" />
                  <i v-else class="el-icon-plus avatar-uploader-icon"></i>
                </el-upload>
              </div>
              <div class="col3">
                将显示在浏览器窗口标题等位置
                <div>调用方式<span>config('base.site_name')</span></div>
              </div>
            </div> -->
    <div class="rowData">
      <div class="col1">网站标题</div>
      <div class="col2">
        <el-input v-model="title" placeholder="请填写网站标题"></el-input>
      </div>
      <div class="col3">
        网站标题是体现一个网站的主旨，要做到主题突出、标题简洁、连贯等特点，建议不超过28个字
        <div>调用方式<span>config('base.site_title')</span></div>
      </div>
    </div>
    <div class="rowData">
      <div class="col1">网站关键词</div>
      <div class="col2">
        <el-input v-model="yuming" placeholder="请填写网站关键词"></el-input>
      </div>
      <div class="col3">
        网页内容所包含的核心搜索关键词，多个关键字请用英文逗号","分隔
        <div>调用方式<span>config('base.site_keywords')</span></div>
      </div>
    </div>
    <div class="rowData">
      <div class="col1">网站描述</div>
      <div class="col2">
        <el-input
          type="textarea"
          maxlength="100"
          :rows="4"
          show-word-limit
          v-model="yuming"
          placeholder="请填写网站描述"
        ></el-input>
      </div>
      <div class="col3">
        网页的描述信息，搜索引擎采纳后，作为搜索结果中的页面摘要显示，建议不超过80个字
        <div>调用方式<span>config('base.site_description')</span></div>
      </div>
    </div>
    <div class="rowData">
      <div class="col1">ICP备案信息</div>
      <div class="col2">
        <el-input v-model="info" placeholder="请填写ICP备案信息"></el-input>
      </div>
      <div class="col3">
        请填写ICP备案号，用于展示在网站底部，ICP备案官网：http://www.miibeian.gov.cn
        <div>调用方式<span>config('base.site_icp')</span></div>
      </div>
    </div>
    <div class="rowData">
      <div class="col1">站点统计代码</div>
      <div class="col2">
        <el-input
          type="textarea"
          maxlength="100"
          :rows="4"
          show-word-limit
          v-model="yuming"
          placeholder="请填写站点统计代码"
        ></el-input>
      </div>
      <div class="col3">
        第三方流量统计代码，前台调用时请先用 htmlspecialchars_decode函数转义输出
        <div>调用方式<span>config('base.site_statis')</span></div>
      </div>
    </div>
    <div class="rowData">
      <div class="col1"></div>
      <div class="col2">
        <el-button type="primary">提交</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
@import "@/style/index.scss";
.rowData {
  display: flex;
  align-items: center;
  padding-top: 20px;
  box-sizing: border-box;
  .col1 {
    width: 10%;
    text-align: end;
    font-size: 14px;
  }
  .col2 {
    width: 20%;
    padding: 0 20px;
    box-sizing: border-box;
    /deep/.avatar-uploader .el-upload {
      border: 1px dashed #d9d9d9;
      border-radius: 6px;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }
    .avatar-uploader .el-upload:hover {
      border-color: #409eff;
    }
    .avatar-uploader-icon {
      font-size: 28px;
      color: #8c939d;
      width: 80px;
      height: 80px;
      line-height: 80px;
      text-align: center;
    }
    .avatar {
      width: 80px;
      height: 80px;
      display: block;
    }
  }
  .col3 {
    font-size: 12px;
    color: #666666;
    span {
      color: $color-primary1;
    }
  }
}
</style>
